﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CNVP.JShop.Publish
{
    /// <summary>
    /// 当前页面基础信息
    /// </summary>
    public class BaseInfo
    {
        /// <summary>
        /// 是否为编辑状态
        /// </summary>
        private Boolean inEdit = false;
        /// <summary>
        /// 是否为HTML
        /// </summary>
        private Boolean isHtml = false;
        /// <summary>
        /// 当前使用模版方案名
        /// </summary>
        private String templateUse = Config.UIConfig.TemplateUse;
        /// <summary>
        /// 当前页码，针对栏目设置字段
        /// </summary>
        private Int32 pageIndex = 1;

        /// <summary>
        /// 当前页面栏目ID
        /// </summary>
        public Int32 CurentColumnID { get; set; }
        /// <summary>
        /// 当前页面内容ID
        /// </summary>
        public Int32 CurentContentID { get; set; }
        /// <summary>
        /// 当前页面语言
        /// </summary>
        public String CurentLanguage { get; set; }
        /// <summary>
        /// 当前页码
        /// </summary>
        public Int32 CurentPageIndex {
            get { return this.pageIndex; }
            set { this.pageIndex = value; } 
        }
        /// <summary>
        /// 是否正在编辑
        /// </summary>
        public Boolean InEdit { 
            get{return this.inEdit;}
            set{ this.inEdit = value; }
        }
        /// <summary>
        /// 是否为HTML
        /// </summary>
        public Boolean IsHtml {
            get { return this.isHtml; }
            set { this.isHtml = value; }
        }
        /// <summary>
        /// 模版类型
        /// </summary>
        public Int32 TemplateType { get; set; }
        /// <summary>
        /// 数据类型
        /// </summary>
        public Int32 ModuleType { get; set; }
    }
}
